package com.situ.firmadmin.pojo.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserDeptVO {
    @ExcelProperty(value = "用户ID")
    private Integer id;
    @ExcelProperty(value = "用户名")
    private String name;
    @ExcelProperty(value = "密码")
    private String password;
    @ExcelProperty(value = "性别")
    private String gender;
    @ExcelProperty(value = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;
    @ExcelProperty(value = "地址")
    private String address;
    @ExcelProperty(value = "联系方式")
    private String phone;
    @ExcelProperty(value = "邮箱")
    private String email;
    @ExcelProperty(value = "QQ号")
    private String qqId;
    @ExcelProperty(value = "头像")
    private String image;
    @ExcelProperty(value = "角色类型")
    private String role;
    @ExcelProperty(value = "账号状态")
    private Integer status;
    @JsonIgnore
    @ExcelIgnore
    private Integer deleted;
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ExcelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @ExcelProperty(value = "所在部门")
    private String deptName;
    private Integer roleId;
}
